package edu.sctu.zcy.month201506.day20150609;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by user24 on 2015/6/9.
 */
public class Time {

    public void setStartTime(){

        Calendar calendar1 = Calendar.getInstance();
//        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("开始时间："+ simpleDateFormat.format(calendar1.getTime()));

        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.MINUTE,10);

        System.out.println("结束时间："+simpleDateFormat.format(calendar.getTime()));




    }


}
